using UnityEngine;
using System.Collections;

public class RandomMaterial : MonoBehaviour {
	public Material[] materials;
	
	void Awake () {
		GameObject []objs = GameObject.FindGameObjectsWithTag("wall");
		foreach(GameObject obj in objs){
			obj.renderer.material = materials[Random.Range(0, materials.Length)];
			
		}
	}
	
	
}
